package cn.javabb.log.exception;

import cn.javabb.common.exception.advice.ResultExceptionAdvice;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @desc:
 * @author: javabb (javabob(a)163.com)
 * @create: 2019/11/04 18:04
 */
@Configuration
public class LogProceedAdviceConfig {
    @Bean
    public LogProceedAdvice actionLogProceedAdvice(ResultExceptionAdvice advice) {
       LogProceedAdvice authorization = new LogProceedAdvice();
        advice.putProceed(authorization);
        return authorization;
    }
}
